﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
   public class TinhThanhPhoObj
    {
        private string _TinhThanhPhoID;

        public string TinhThanhPhoID
        {
            get { return _TinhThanhPhoID; }
            set { _TinhThanhPhoID = value; }
        }
        private string _TenTinhThanhPho;

        public string TenTinhThanhPho
        {
            get { return _TenTinhThanhPho; }
            set { _TenTinhThanhPho = value; }
        }
        public TinhThanhPhoObj SetValuesFromDataReader(IDataReader reader)
        {
            TinhThanhPhoObj obj = new TinhThanhPhoObj();
            obj.TinhThanhPhoID = (reader["TinhThanhPhoID"] is DBNull) ? String.Empty : reader["TinhThanhPhoID"].ToString();
            obj.TenTinhThanhPho = (reader["TenTinhThanhPho"] is DBNull) ? String.Empty : reader["TenTinhThanhPho"].ToString();
            return obj;
        }
    }
}
